package com.dynamixsoftware.printershare.smb;

class SmbComSessionSetupAndXResponse
  extends AndXServerMessageBlock
{
  byte[] blob = null;
  boolean isLoggedInAsGuest;
  private String nativeLanMan = "";
  private String nativeOs = "";
  private String primaryDomain = "";
  
  SmbComSessionSetupAndXResponse(ServerMessageBlock paramServerMessageBlock)
  {
    super(paramServerMessageBlock);
  }
  
  int readBytesWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    int i = paramInt;
    if (this.extendedSecurity)
    {
      System.arraycopy(paramArrayOfByte, paramInt, this.blob, 0, this.blob.length);
      paramInt += this.blob.length;
    }
    this.nativeOs = readString(paramArrayOfByte, paramInt);
    int j = paramInt + stringWireLength(this.nativeOs, paramInt);
    this.nativeLanMan = readString(paramArrayOfByte, j, i + this.byteCount, 255, this.useUnicode);
    int k = j + stringWireLength(this.nativeLanMan, j);
    if (!this.extendedSecurity)
    {
      int m = i + this.byteCount;
      boolean bool = this.useUnicode;
      this.primaryDomain = readString(paramArrayOfByte, k, m, 255, bool);
      k += stringWireLength(this.primaryDomain, k);
    }
    return k - i;
  }
  
  int readParameterWordsWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    int i = 1;
    if ((0x1 & paramArrayOfByte[paramInt]) == i) {}
    for (;;)
    {
      this.isLoggedInAsGuest = i;
      int j = paramInt + 2;
      if (this.extendedSecurity)
      {
        int k = readInt2(paramArrayOfByte, j);
        j += 2;
        this.blob = new byte[k];
      }
      return j - paramInt;
      i = 0;
    }
  }
  
  public String toString()
  {
    return new String("SmbComSessionSetupAndXResponse[" + super.toString() + ",isLoggedInAsGuest=" + this.isLoggedInAsGuest + ",nativeOs=" + this.nativeOs + ",nativeLanMan=" + this.nativeLanMan + ",primaryDomain=" + this.primaryDomain + "]");
  }
  
  int writeBytesWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    return 0;
  }
  
  int writeParameterWordsWireFormat(byte[] paramArrayOfByte, int paramInt)
  {
    return 0;
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.smb.SmbComSessionSetupAndXResponse
 * JD-Core Version:    0.7.0.1
 */